
<div class="row">
  <div class="col-xs-12 col-md-12">
    <div class="widget">

      <div class="widget-header bordered-bottom bordered-themeprimary">
        <i class="widget-icon fa fa-tasks themeprimary"></i>
        <span class="widget-caption themeprimary"><%=@page_title %></span>
        <div class="widget-buttons buttons-bordered">
          <%= button_to '新建往来单位分类', new_partner_category_path, method: :get, :class => "btn btn-blue btn-xs" %>
        </div>

      </div><!--Widget Header-->
      <div class="widget-body">
        <div class="widget-main no-padding">
          <% if notice  %>
          <div class="alert alert-success"><button class="close" data-dismiss="alert">
            ×
          </button>
            <%= notice %></div>
          <% end  %>
          <div class="flip-scroll">
            <div class="dataTables_wrapper form-inline no-footer">
              <table class="table table-bordered table-striped table-condensed flip-content">
                <thead class="flip-content bordered-palegreen">
                <tr>
                  <th>分类编码</th>
                  <th>分类名称</th>
                  <th>上级分类</th>
                  <th colspan="3"></th>
                </tr>
                </thead>

                <tbody>
                <% @partner_categories.each do |partner_category| %>
                  <tr>
                    <td><%= partner_category.code %></td>
                    <td><%= partner_category.name %></td>
                    <td><%= partner_category.parent_id %></td>
                    <td><%= link_to 'Show', partner_category %></td>
                    <td><%= link_to 'Edit', edit_partner_category_path(partner_category) %></td>
                    <td><%= link_to 'Destroy', partner_category, method: :delete, data: { confirm: 'Are you sure?' } %></td>
                  </tr>
                <% end %>
                </tbody>
              </table>
              <div class="row DTTTFooter">
                <div class="col-xs-12 col-md-12">
                  <div class="dataTables_paginate paging_bootstrap" id="simpledatatable_paginate">
                    <%= paginate @partner_categories, window: 1, outer_window: 1, remote: true %>
                  </div>
                </div>
              </div>

            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
